<%@ page language="java" import="up7.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@	page import="com.google.gson.Gson" %>
<%@ page import="up7.model.*" %>
<%@ page import="up7.biz.*" %>
<%@ page import="up7.utils.*" %>
<%@	page import="org.apache.commons.lang.StringUtils" %>
<%@ page import="java.net.URLDecoder" %>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="net.sf.json.JSONObject" %>
<%@ page import="up7.sql.SqlWhereMerge" %>
<%@ page import="up7.sql.SqlExec" %>
<%@ page import="net.sf.json.JSONArray" %>
<%@ page import="filemgr.PageFileMgr" %>
<%
    out.clear();

    WebBase web = new WebBase(pageContext);


    String data = web.reqStr("data");
    data = PathTool.url_decode(data);
    JSONArray o = JSONArray.fromObject(data);

    SqlExec se = new SqlExec();
    se.exec_batch("up7_files", "update up7_files set f_deleted=1 where f_id=?", "", "f_id", o);
    se.exec_batch("up7_folders", "update up7_folders set f_deleted=1 where f_id=?", "", "f_id", o);

    JSONObject ret = new JSONObject();
    ret.put("ret", 1);
    out.write(ret.toString());
%>